package com.atboluo.springcloud.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* @author 牵风散步的雲
* @Description //
 *  统一返回类
* @Date 2023-2-19 13:13
* @param  * @param null
* @return
**/

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonResult<T> {

     private Integer code;

     private String message;

     private T  data;


     public CommonResult(Integer code,String message){
         this(code,message,null);
     }

}
